package fun.chutianshu.eescore_full.controller;

import fun.chutianshu.eescore_full.entity.StudentCourse;
import fun.chutianshu.eescore_full.service.StudentCourseService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 学生课程关联表(StudentCourse)表控制层
 *
 * @author makejava
 * @since 2021-04-27 20:06:13
 */
@RestController
@RequestMapping("studentCourse")
public class StudentCourseController {
    /**
     * 服务对象
     */
    @Resource
    private StudentCourseService studentCourseService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数
     */
    @GetMapping("selectOne/{id}")
    public StudentCourse selectOne(@PathVariable(name="id") Long id) {
        return this.studentCourseService.queryById(id);
    }

}